package com.test.test_rest.blockchain_data.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperTranGridConf implements Serializable {
    private Integer id;

    private Integer jobId;

    /**
     * 币种
     */
    private String symbol;

    /**
     * 当前币总金额
     */
    private BigDecimal amount;

    /**
     * 剩余可使用总金额
     */
    private BigDecimal surplusAmount;

    /**
     * 启动状态;开始start;暂停pause;止盈stopProfit;平仓止停stop;
     */
    private String status;

    private Date createTime;

    private Date updateTime;

    /**
     * 上涨加仓锚定价
     */
    private BigDecimal upPrice;

    /**
     * 下跌加仓锚定价
     */
    private BigDecimal downPrice;

    /**
     * 任务子ID
     */
    private Integer taskId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    /**
     * 币种
     */
    public String getSymbol() {
        return symbol;
    }

    /**
     * 币种
     */
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    /**
     * 当前币总金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 当前币总金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 剩余可使用总金额
     */
    public BigDecimal getSurplusAmount() {
        return surplusAmount;
    }

    /**
     * 剩余可使用总金额
     */
    public void setSurplusAmount(BigDecimal surplusAmount) {
        this.surplusAmount = surplusAmount;
    }

    /**
     * 启动状态;开始start;暂停pause;止盈stopProfit;平仓止停stop;
     */
    public String getStatus() {
        return status;
    }

    /**
     * 启动状态;开始start;暂停pause;止盈stopProfit;平仓止停stop;
     */
    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 上涨加仓锚定价
     */
    public BigDecimal getUpPrice() {
        return upPrice;
    }

    /**
     * 上涨加仓锚定价
     */
    public void setUpPrice(BigDecimal upPrice) {
        this.upPrice = upPrice;
    }

    /**
     * 下跌加仓锚定价
     */
    public BigDecimal getDownPrice() {
        return downPrice;
    }

    /**
     * 下跌加仓锚定价
     */
    public void setDownPrice(BigDecimal downPrice) {
        this.downPrice = downPrice;
    }

    /**
     * 任务子ID
     */
    public Integer getTaskId() {
        return taskId;
    }

    /**
     * 任务子ID
     */
    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jobId=").append(jobId);
        sb.append(", symbol=").append(symbol);
        sb.append(", amount=").append(amount);
        sb.append(", surplusAmount=").append(surplusAmount);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", upPrice=").append(upPrice);
        sb.append(", downPrice=").append(downPrice);
        sb.append(", taskId=").append(taskId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperTranGridConf other = (SuperTranGridConf) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getSymbol() == null ? other.getSymbol() == null : this.getSymbol().equals(other.getSymbol()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getSurplusAmount() == null ? other.getSurplusAmount() == null : this.getSurplusAmount().equals(other.getSurplusAmount()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpPrice() == null ? other.getUpPrice() == null : this.getUpPrice().equals(other.getUpPrice()))
            && (this.getDownPrice() == null ? other.getDownPrice() == null : this.getDownPrice().equals(other.getDownPrice()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getSymbol() == null) ? 0 : getSymbol().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getSurplusAmount() == null) ? 0 : getSurplusAmount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpPrice() == null) ? 0 : getUpPrice().hashCode());
        result = prime * result + ((getDownPrice() == null) ? 0 : getDownPrice().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        return result;
    }
}